static-lib = libmymath.a

$(static-lib):Add.o Sub.o Mul.o
	ar -rc $@ $^
%.o:%.c
	gcc -c $<

.PHONY:output
output:
	mkdir -p mymath_lib/include  # include 里面存放 .h 文件
	mkdir -p mymath_lib/lib		 # lib里面存放 .a 文件
	cp -f *.h mymath_lib/include
	cp -f *.a mymath_lib/lib
.PHONY:clean
clean:
	rm -f *.o *.a mymath_lib
